package cn.golxen.rsms.service;

import cn.golxen.rsms.bean.bo.*;
import cn.golxen.rsms.bean.entity.GoodsLog;
import cn.golxen.rsms.bean.entity.PayLog;

import java.time.LocalDateTime;
import java.util.List;

public interface LogService {
    int addGoodsLog(GoodsLog goodsLog);

    int addGoodsLogList(List<GoodsLog> goodsLogs);
    int addGoodsLogListByObject(Object object,String type);
    List<GoodsLog> getGoodsLogByPeriod(GetGoodsLogByPeriodBo getGoodsLogByPeriodBo);
    List<GetGoodsWarnStateBo> getGoodsSalesDaysByLogDayAndCode(int day, List<String> codeList, int storeId);
    int updateOrderIsDone(String orderId, String customerId, int isDone);
    int addPayLog(PayLog payLog);
    List<PayLog> getPayLogListByPeriod(BusinessSalesFlowBo bo);
    List<PayLog> getDonePayLogListByPeriod(LocalDateTime startDate,LocalDateTime endDate, int storeId);

    List<GoodsLog> getSalesGoodsLogByPeriod(BusinessDateBo bo);

    List<GoodsSalesTypeNumBo> getGoodsSalesTypeNumByDay(LocalDateTime startDate,LocalDateTime endDate, int storeId);
    PayLog getLastOrderByDone(int storeId);
}
